Class Earth

java.lang.Object
  extended by greenfoot.World
      extended by Earth

public class Earth
extends greenfoot.World

This is Earth. Or at least some remote, uninhabited part of Earth. Here, Greeps can land and look for piles of tomatoes...

Version:
1.0
Author:
Michael Kolling

Field Summary
static int HEIGHT
           
static int RESOLUTION
           
static int SCORE_DISPLAY_TIME
           
static int WIDTH
           
 
Constructor Summary
Earth()
          Create a new world.
 
Method Summary
 boolean isWater(int x, int y)
          Return true, if the specified coordinate shows water.
 void jumpToMap(int map)
          Jump to the given map number (1..n).
 
Methods inherited from class greenfoot.World
act, addObject, getBackground, getCellSize, getColorAt, getHeight, getObjects, getObjectsAt, getWidth, numberOfObjects, removeObject, removeObjects, repaint, setActOrder, setBackground, setBackground, setPaintOrder, started, stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEIGHT

public static final int HEIGHT
See Also:
Constant Field Values

RESOLUTION

public static final int RESOLUTION
See Also:
Constant Field Values

SCORE_DISPLAY_TIME

public static final int SCORE_DISPLAY_TIME
See Also:
Constant Field Values

WIDTH

public static final int WIDTH
See Also:
Constant Field Values
Constructor Detail

Earth

public Earth()
Create a new world.

Method Detail

isWater

public boolean isWater(int x,
                       int y)
Return true, if the specified coordinate shows water. (Water is defined as a predominantly blueish color.)


jumpToMap

public void jumpToMap(int map)
Jump to the given map number (1..n).